package cn.net.xyan.easy.spring.testwar.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

/**
 * Created by xiashenpin on 16/1/16.
 */
@Controller("rootCtrl")
@RequestMapping("/")
public class RootController {

    Logger logger = LoggerFactory.getLogger(RootController.class);

    @RequestMapping("/gwt")
    public String indexPage(){
        return "index";
    }


    @RequestMapping("/test")
    public @ResponseBody
    Date indexPage(Pageable pageable){
        return new Date();
    }
}
